package panels;

import java.awt.Component;
import java.awt.GridBagLayout;

import javax.swing.JButton;
import javax.swing.JPanel;

public class SwipeButtons {
	private JButton swipeUP,swipeDOWN,swipeLEFT,swipeRIGHT;
	private JPanel north,east,west,south;
	public SwipeButtons(){
		north = new JPanel();
		east = new JPanel();
		east.setLayout(new GridBagLayout());
		west = new JPanel();
		west.setLayout(new GridBagLayout());
		south = new JPanel();
		swipeUP=new JButton("Swipe Up");
		swipeDOWN = new JButton("Swipe Down");
		swipeLEFT = new JButton("Swipe Left");
		swipeRIGHT = new JButton("Swipe Right");
	}
	public Component getSwipe(int s){
		switch(s){
			case 0: north.add(swipeUP); return north;
			case 1: east.add(swipeRIGHT); return east;
			case 2: south.add(swipeDOWN); return south;
			case 3: west.add(swipeLEFT); return west;
		}
		return null;
	}
}